package com.tz.farmer.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class DetailsVo implements Serializable {

    private Integer id    ;//主体ID
    private String uniscId    ;//统一信用代码
    private String businessName    ;//主体名称
    private String scale    ;//生产规模
    private String leadingProduct    ;//主导产品
    private String weight   ;//重量
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone="GMT+8" )
    private Date pickTime    ;//采摘日期
    private String authType    ;//认证类别
    private String number    ;//认证编号
    private String yield    ;//批准产量
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone="GMT+8" )
    private Date termTime    ;//有效期
    private String url    ;//检测图片
    private String pName    ;//检测图片
    private Integer leadId; //主体id

}
